﻿@model WebApp.Models.IndexViewModels

@{
    ViewBag.Title = "首页";
    Layout = "~/Views/Shared/_Movie.cshtml";
}

<link href="~/Content/auto1.css" rel="stylesheet" />
<div class="col">
    <div id="newest" class="fr">
        <h2>最新文章<span style="float:right"><a href="/movies/" target="_blank">更多&gt;&gt;</a></span></h2>
        <ul>
            @foreach (var item in Model.LastContents)
            {
                <li>
                    <a style="float:left" href="/view/@Html.Raw(item.Seed/1000)@Html.Raw("/")@Html.Raw(item.Seed)@Html.Raw(".html")" rel="bookmark"
                       title="《@Html.Raw(item.Name)》高清迅雷下载" target="_blank">《@Html.Raw(item.Name)》高清迅雷下载</a>
                    <div style="float:right;"><span style="color:#CC0000">[@Html.Raw(item.State)]</span><span style="color:#666666">@item.UpdateTime.ToString("MM-dd")</span></div>
                </li>
            }
        </ul>
    </div>
    <div id="slideBox">
        <ul id="show_pic" style="left: -774px;">
            @foreach (var cover in Model.CoverContents)
            {
                <li><a href="/view/@Html.Raw(cover.Seed/1000)@Html.Raw("/")@Html.Raw(cover.Seed)@Html.Raw(".html")" target="_blank"><img alt="@cover.Name" title="" height="360" width="258" src="@cover.ImgUrl"></a></li>
            }
        </ul>
        <div id="slideText">
        </div>
        <ul id="iconBall">
            @foreach (var cover in Model.CoverContents)
            {
                <li class="">@Html.Raw(Model.CoverContents.IndexOf(cover)+1)</li>
            }
        </ul>
        <ul id="textBall">
            @foreach (var cover in Model.CoverContents)
            {
                <li class="active"><a href="javascript:void(0)">@Html.Raw(cover.Name)</a></li>
            }
        </ul>
    </div>
</div>
<script src="~/Scripts/zzsc.js"></script>
@foreach (var indexModel in Model.IndexModels)
{
    <div class="@Html.Raw("col")@Html.Raw(2-(Model.IndexModels.IndexOf(indexModel)+1)%2)">
        <div class="catlist">
            <h3>
                <a href="/category/@indexModel.Category.CategoryUrl/" target="_blank">@indexModel.Category.CategoryName</a>
                <span>
                    <a href="/category/@indexModel.Category.CategoryUrl/" target="_blank">更多&gt;&gt;</a>
                </span>
            </h3>
            <ul>
                @foreach (var content in indexModel.ContentList)
                {
                    <li>
                        <a style="float:left" href="/view/@Html.Raw(content.Seed/1000)@Html.Raw("/")@Html.Raw(content.Seed)@Html.Raw(".html")" target="_blank">《@Html.Raw(content.Name)》高清迅雷下载</a>
                        <div style="float:right"><span style="color:#CC0000">[@Html.Raw(content.State)]</span><span style="color:#666666">@content.UpdateTime.ToString("MM-dd")</span></div>
                    </li>
                }
            </ul>
        </div>
    </div>
}
